from django.urls import path
from . import views

urlpatterns = [
    path('usernames/<username:username>/count/', views.UsernameCountView.as_view()),
    path('mobiles/<mobile:mobile>/count/', views.MobileCountView.as_view()),
    path('register/', views.RegisterView.as_view()),
    path('login/', views.LoginView.as_view()),
    path('logout/', views.LogoutView.as_view()),
    path('info/', views.UserInfoView.as_view()),
    path('emails/', views.EmailView.as_view()),
    path('emails/verification/', views.VerifyEmailView.as_view()),
    path('addresses/create/', views.CreateAddressView.as_view()),
    path('addresses/', views.AddressView.as_view()),
    path('addresses/<id>/', views.UpdateDestroyAddressView.as_view()),
    path('addresses/del/<id>/', views.DestroyAddressView.as_view()),
    path('addresses/<id>/default/', views.DefaultAddressView.as_view()),
    path('addresses/<id>/title/', views.UpdateTitleAddressView.as_view()),
    path('password/', views.PasswordView.as_view()),
    path('ad/emails/', views.SendAdEmailsView.as_view()),

    path('login_cookie/', views.login_cookie),
    path('login_cookie_success/', views.login_cookie_success),
    path('login_session/', views.login_session),
    path('login_session_success/', views.login_session_success),
]
